<?php

use yii\db\Migration;

class m160114_094241_add_first_name_to_user extends Migration
{
    public function up()
    {
        $this->addColumn('user','first_name',$this->string(100));
        $this->addColumn('user','last_name',$this->string(100));
    }

    public function down()
    {
        $this->dropColumn('user','first_name');
        $this->dropColumn('user','last_name');
    }

    /*
    // Use safeUp/safeDown to run migration code within a transaction
    public function safeUp()
    {
    }

    public function safeDown()
    {
    }
    */
}
